* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
}

.swiper {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    position: relative;
    padding: 15px;
    min-height: 435px;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.promotion-banner {
    background: #fff9e6;
    color: #ff4400;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

.team-list {
    margin: 15px 0;
}

.team-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background: #eee;
}

.team-info {
    flex: 1;
}

.team-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.countdown {
    font-size: 12px;
    color: #f5222d;
    font-weight: bold;
}

.join-btn {
    background: #ff4400;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.join-btn:disabled {
    background: #ccc;
}

.price-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    border-top: 1px solid #eee;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 24px;
    color: #ff4400;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.buy-alone {
    background: #ffd6cc;
    color: #ff4400;
}

.start-group {
    background: #ff4400;
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 320px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-btn {
    background: #1890ff;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
}

.qr-modal .modal-content {
    text-align: center;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    background: #f5f5f5;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.success-modal .modal-content {
    text-align: center;
    padding: 30px;
}

.user-team {
    background-color: #e6f7ff;
    border: 1px solid #91d5ff;
}
.user-team .join-btn {
    background-color: #1890ff;
}
.user-team::before {
    content: '我的团';
    position: absolute;
    top: 0;
    left: 0;
    background-color: #1890ff;
    color: white;
    padding: 2px 5px;
    font-size: 12px;
    border-radius: 0 0 5px 0;
}